/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.entity.report;

import java.util.Collection;
import java.util.Set;
import java.util.TreeMap;

/**
 *
 * @author GiangLT
 */
public class ServiceProduction {

    private String opertator;
    private TreeMap<String, Integer> serviceCountMap = new TreeMap<String, Integer>();

    public ServiceProduction() {
    }

    public String getOpertator() {
        return opertator;
    }

    public void setOpertator(String opertator) {
        this.opertator = opertator;
    }

    public Integer getTotal() {
        Integer total = 0;
        Collection<Integer> values = serviceCountMap.values();
        for (Integer value : values) {
            total += value;
        }
        return total;
    }

    public void put(String serviceName, Integer count) {
        serviceCountMap.put(serviceName, count);
    }
    
    public Collection<Integer> getCountList(){
        return serviceCountMap.values();
    }
    
    public Set<String> getServiceList(){
        return serviceCountMap.keySet();
    }
}
